package week04.day02;

public class test {
    public static void main(String[] args) {
        int sum = 0;
        for(int i=0;i<10;i+=5){
            int fac = 1;
            for (int j=1;j<=i;j++) {
                fac *= j;
            }
            sum+=fac;
            }
        System.out.println(sum);
    }
}
